<template>
    <div class="wrap">
        <el-card class="left" :class="{active:active}">
            <div class="excise" @click="active=!active">消息 <span class="arrow" :class="{active:active}">&gt;</span></div>
            <div class="line"></div>
            <div class="inform">
                <div class="item" :class="{active:clickActive=='系统通知'}" @click="clickActive='系统通知'">系统通知</div>
                <div class="item" :class="{active:clickActive=='互动通知'}" @click="clickActive='互动通知'">互动通知</div>
                <div class="item" :class="{active:clickActive=='订单通知'}" @click="clickActive='订单通知'">订单通知</div>
            </div>
        </el-card>
        <div class="right">
            <el-card class="right-header">{{clickActive}}</el-card>
            <el-card class="right-main">
                <div class="no_content">
                    <img src="../../assets/no_content.png" alt="">
                    <div class="title">无更多数据</div>
                </div>
            </el-card>
        </div>
    </div>
</template>

<script setup lang='ts'>
import { computed, ref } from 'vue';

const active=ref(false)
const clickActive=ref('系统通知')
</script>

<style lang="less" scoped>
.wrap{
    width: 1200px;
    margin: 20px auto;
    display: flex;
    ::v-deep(.el-card__body){
        margin: 0;
        padding: 0;
    }
    .left{
        width: 170px;
        // height: 60px;
        height: 60px;
        position: relative;
        font-size: 14px;
        .excise{
            display: flex;
            justify-content: space-between;
            cursor: pointer;
            padding: 17px 21px;
            .arrow{
                transform: rotate(0deg);
                &.active{
                    transform: rotate(90deg);
                }
            }
        }
        .line{
            width: 3px;
            height: 40px;
            background-color: #f93684;
            position: absolute;
            top: 10px;
            left: 0;
        }
        &.active{
            height: 180px;
        }
        .inform{
            width: 100%;
            .item{
                cursor: pointer;
                width: 100%;
                padding: 12px 0 12px 49px;
                &:hover{
                    color: #f93684;
                }
                &.active{
                    color: #f93684;
                }
            }
        }
    }
    .right{
        flex: 1;
        margin-left: 10px;
        .right-header{
            margin-bottom: 10px;
            padding: 28px 30px;
            box-sizing: border-box;
            width: 100%;
            font-size: 14px;
            line-height: 32px;
        }
    }
    .right-main{
        width: 100%;
        height: 700px;
        .no_content{
            position: relative;
            font-size: 20px;
            img{
                margin: 160px 350px;

            }
            .title{
                position: absolute;
                top: 400px;
                left: 400px;
                color: #aaa;
            }
        }
    }
}
</style>